<?php echo module_open(); ?>
<tr class="no-border">
    <td>
    	<input type="hidden" class="tabId" value="<?php echo $GLOBALS['var']['mytab'] ?>" />
        <ul id="myTab" class="nav nav-tabs">
            <li class="hide640<?php echo ($GLOBALS['var']['mytab'] == 0 ? ' active' : '') ?>" onclick="set_mytab($(this));"><a href="#tabs-0" data-toggle="tab">Nhân sự</a></li>
            <li class="hide640<?php echo ($GLOBALS['var']['mytab'] == 1 ? ' active' : '') ?>" onclick="set_mytab($(this));"><a href="#tabs-1" data-toggle="tab">Cá nhân</a></li>
            <li class="hide640<?php echo ($GLOBALS['var']['mytab'] == 2 ? ' active' : '') ?>" onclick="set_mytab($(this));"><a href="#tabs-2" data-toggle="tab">Lương</a></li>
            <li class="dropdown active show640">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="current-tab-name">Danh sách quản lý</span> <span class="caret"></span></a>
                <ul class="dropdown-menu">
                	<li <?php echo ($GLOBALS['var']['mytab'] == 0 ? ' active' : '') ?>onclick="set_mytab($(this));"><a href="#tabs-0" data-toggle="tab">Nhân sự</a></li>
            		<li <?php echo ($GLOBALS['var']['mytab'] == 1 ? ' active' : '') ?>onclick="set_mytab($(this));"><a href="#tabs-1" data-toggle="tab">Cá nhân</a></li>
            		<li <?php echo ($GLOBALS['var']['mytab'] == 2 ? ' active' : '') ?>onclick="set_mytab($(this));"><a href="#tabs-2" data-toggle="tab">Lương</a></li>
                </ul>
            </li>
        </ul>
        <div id="myTabContent" class="tab-content">
	        <div id="tabs-0" class="tab-pane<?php echo ($GLOBALS['var']['mytab'] == 0 ? ' active' : '') ?>">
	        	<table cellpadding="0" cellspacing="0" width="100%" border="0">
					<tr>
						<td class="fr">
							<div class="tdleft">Tên đăng nhập</div>
							<div class="tdright"><b><?php echo $user['username'] ?></b></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft clr320">Ảnh đại diện</div>
							<div class="tdright clr320">
								<div class="image-wrap">
						            <div class="image">
						                <div class="no-image" onclick="return false;" style="cursor:  default;">
											<i class="icon36 glyphicons picture" style="<?php if(goodfile('img/avatar/thumbs/'.$user['icon'])) { ?>display:none;<?php } ?>"></i>
						                    <img class="preview_img" style="<?php if(!goodfile('img/avatar/thumbs/'.$user['icon'])) { ?>display:none;<?php } ?>" src="img/avatar/thumbs/<?php echo $user['icon']?>" />
						                </div>
						            </div>
						        </div>
						    </div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Nhóm nhân sự</div>
							<div class="tdright"><?php echo get_data('usergroups', 'level = '.$user['level'], 'name_vn') ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Bộ phận / phòng ban</div>
							<div class="tdright"><?php echo get_data('parts', 'id = '.$user['bophan'], 'name_vn') ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Chức vụ / vị trí</div>
							<div class="tdright"><?php echo get_data('positions', 'id = '.$user['chucvu'], 'name_vn') ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Ngày vào làm</div>
							<div class="tdright"><?php echo $user['date_vaolam'] ?></div>
						</td>
					</tr>
				</table>
			</div>
			<div id="tabs-1" class="tab-pane<?php echo ($GLOBALS['var']['mytab'] == 1 ? ' active' : '') ?>">
	        	<table cellpadding="0" cellspacing="0" width="100%" border="0">
	        		<tr>
						<td class="fr">
							<div class="tdleft">Họ tên</div>
							<div class="tdright"><?php echo $user['fullname'] ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Nơi sinh</div>
							<div class="tdright"><?php echo $user['noisinh'] ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Ngày sinh</div>
							<div class="tdright"><?php echo $user['date_sinh'] ?></div>
						</td>
					</tr>
					<tr>
                        <td class='fr'>
                            <div class="tdleft">Giới tính</div>
                            <div class="tdright"><?php echo($user['gioitinh'] ? 'Nam' : 'Nữ') ?></div>
                        </td>
                    </tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Địa chỉ</div>
							<div class="tdright"><?php echo $user['diachi'] ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">CMND</div>
							<div class="tdright"><?php echo $user['cmnd'] ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Ngày cấp</div>
							<div class="tdright"><?php echo $user['date_cmnd'] ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Nơi cấp</div>
							<div class="tdright"><?php echo $user['noicap_cmnd'] ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Điện thoại</div>
							<div class="tdright"><?php echo $user['phone'] ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft clr320">Email</div>
							<div class="tdright clr320"><?php echo $user['email'] ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft clr320">Yahoo</div>
							<div class="tdright clr320"><?php echo $user['yahoo'] ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft clr320">Skype</div>
							<div class="tdright clr320"><?php echo $user['skype'] ?></div>
						</td>
					</tr>
	        	</table>
	        </div>
	        <div id="tabs-2" class="tab-pane<?php echo ($GLOBALS['var']['mytab'] == 2 ? ' active' : '') ?>">
	        	<table cellpadding="0" cellspacing="0" width="100%" border="0">
                    <tr>
						<td class="fr">
							<div class="tdleft">Lương căn bản</div>
							<div class="tdright"><?php echo number_format($user['luong_cb']) ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Giờ quy định</div>
							<div class="tdright"><?php echo $user['gioqd'] ?> giờ</div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Phụ cấp trách nhiệm</div>
							<div class="tdright"><?php echo number_format($user['phucap_trachnhiem']) ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Phụ cấp chuyên cần</div>
							<div class="tdright"><?php echo number_format($user['phucap_chuyencan']) ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Phụ cấp công tác phí</div>
							<div class="tdright"><?php echo number_format($user['phucap_congtac']) ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Phụ cấp xăng</div>
							<div class="tdright"><?php echo number_format($user['phucap_xang']) ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Mức hoa hồng %</div>
							<div class="tdright"><?php echo number_format($user['muchoahong']) ?></div>
						</td>
					</tr>
					<tr>
						<td class="fr">
							<div class="tdleft">Tiền bảo hiểm</div>
							<div class="tdright"><?php echo number_format($user['tien_bh']) ?></div>
						</td>
					</tr>
	        	</table>
	        </div>
		</div>
	</td>
</tr>
<?php echo module_close(); ?>